home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: hkpu01.hkp.hk!usenet
- From: kwkwok5@hkein.school.net.hk (K. W. Kwok)
- Subject: How to develope a binary tree ??
- Content-Type: Text/Plain; charset=US-ASCII
- Message-ID: <Dn8MLL.J32@hkpu01.polyu.edu.hk>
- Sender: usenet@hkpu01.polyu.edu.hk (Usenet Account)
- Nntp-Posting-Host: 158.132.16.123
- Organization: Your Organization
- X-Newsreader: WinVN 0.99.7
- Mime-Version: 1.0
- Date: Fri, 23 Feb 1996 16:46:32 GMT
-
- Hello everybody:
- I hava a big problem now!
- I don't how to build a binary tree using C.
-
- A RANDOM file have the following field:
- Record No. int 1-100
- Branch Code string(2) 01-05
- Salesman ID string(6) 6 digits
- Salesman name string(25) non-blank
- Product A numeric(float) positive
- Product B numeric(float) positive
-
- Now, I need to provide the following features:
- 1. Allow user inquiry the file by salesman ID and
- salesman name.
- I should implement the BINARY SEARCH TREE for the inquiries.
- I need to create two tree. One contains salesman ID and record
- number, the other contains salesman names and record number.
- both tree should be in salesman ID and salesman name order.
-
- 2. Provide 2 Salesman report.
- One report by salesman ID, and the other
- by salesman name.
- The report should be inplemented by the BINARY
- SEARCH TREE inorder traversal
-
- Any one can help me slove the above problems ?
- I urgently need to slove them.
- Can you help me?
- You can answer it directly to me by e-mail
- (kwkwok5@hkein.school.net.hk)
- Thank you very much!!
-
- K. W. Kwok
-
-